﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TA.DotNetUtils.Other
{
	public static class Util
	{
		public static Dictionary<K, V> CreateDictionary<K, V>(Dictionary<K, V> orig, IEnumerable<KeyValuePair<K, V>> values)
		{
			Dictionary<K, V> dic = new Dictionary<K, V>();
			if (orig != null)
			{
				foreach (K key in orig.Keys)
					dic.Add(key, orig[key]);
			}
			foreach (KeyValuePair<K, V> kv in values)
				dic.Add(kv.Key, kv.Value);
			return dic;
		}

	}
}
